import { myRequest } from '../../api/myRequest'
import { actionsMap } from '../../api/url'

const $RC = 'Business'
const $RC_actions = actionsMap[$RC]

export default {
    // 执行事件
    // 2024-03-29 为了支持特殊的事件，需要自定义接口超时时间，需要改造接口
    eventExecute(params, requestOpt = {}) {
        return myRequest({
            url: '/tz/business/eventExecute',
            method: 'post',
            data: params,
            ...requestOpt
        })
    },
    addNodeAndLinkInstanceToListContainer(params) {
        return myRequest({
            url: '/tz/business/addNodeAndLinkInstanceToListContainer',
            method: 'post',
            data: params
        })
    },
}